<?php
declare(strict_types=1);

namespace Dreamcat\ConfigClient\Popo;

/**
 * 配置版本信息
 * @author vijay
 */
class ConfigVersion
{
    /** @var mixed 应用信息，apollo、nacos不一致 */
    private $appInfo;
    /** @var string 版本号 */
    private $releaseKey;

    /**
     * @return mixed 应用信息
     */
    public function getAppInfo()
    {
        return $this->appInfo;
    }

    /**
     * @param mixed $appInfo 应用信息
     * @return static 当前对象
     */
    public function setAppInfo($appInfo): ConfigVersion
    {
        $this->appInfo = $appInfo;
        return $this;
    }

    /**
     * @return string 版本号
     */
    public function getReleaseKey(): string
    {
        return $this->releaseKey;
    }

    /**
     * @param string $releaseKey 版本号
     * @return static 当前对象
     */
    public function setReleaseKey(string $releaseKey): ConfigVersion
    {
        $this->releaseKey = $releaseKey;
        return $this;
    }
}

# end of file
